<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
   <?php echo $this->breadCrumbs();?>
  </div>
  <?php if (isset($error_warning)) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/product.png" alt="" />产品入库</h1>
      <div class="buttons"><a onclick="$('#form').submit();" class="button">提交</a></div>
    </div>
    <div class="content">
      <form action="index.php" method="get" id="form">
      <input type="hidden" name="route" value="tool/collection/cimport" />
      <input type="hidden" name="id" value="<?php echo $node['id'];?>" />
      <input type="hidden" name="token" value="<?php echo $token;?>" />
      <?php if (!empty($ids)) { ?>
		<input type="hidden" name="ids" value="<?php echo $ids; ?>">
	  <?php } ?>
        <table class="form">
          <tr>
			<td class="tl">选择目录</td>
			<td>
				<select name="category_id">
				<?php foreach ($category_tree as $category) { ?>
					<option value="<?php echo $category['category_id'];?>">
					<?php if ($category['_level'] > 0) { ?>
					<?php echo str_repeat('&nbsp;&nbsp;&nbsp;&nbsp;', $category['_level']);?>|_
					<?php } ?>
					<?php echo $category['name']; ?>
					</option>
				<?php } ?>
				</select>
			  </td>
		</tr>
		<tr>
			<td class="tl">字段设置</td>
			<td>
			<p>标题 -&gt; name</p>
			<p>价格 -&gt; price</p>
			<p>图片 -&gt; image</p>
			<p>重量 -&gt; weight</p>
			<p>编号 -&gt; <select name="sku">
							<option value=""></option>
							<option value="model">model</option>
							<option value="sku">sku</option>
							<option value="mpn">mpn</option>
						 </select></p>
			<p>内容 -&gt; description</p>
			<?php
				$fields = array(
					'mpn',
					'msrp',
					'cost',
					'seo_title',
					'meta_description',
					'meta_keyword',
				);
			?>
			<p><?php echo $node['other1_label']?> -&gt; <select name="other1"><option value=""></option><?php echo form_select_option($fields, null, true); ?></select></p>
			<p><?php echo $node['other2_label']?> -&gt; <select name="other2"><option value=""></option><?php echo form_select_option($fields, null, true); ?></select></p>
			<p><?php echo $node['other3_label']?> -&gt; <select name="other3"><option value=""></option><?php echo form_select_option($fields, null, true); ?></select></p>			
			</td>
		</tr>
        </table>
      </form>
    </div>
  </div>
</div>
</div>
<?php echo $footer; ?>